// 自动生成模板Topic
package topic

import (
	"gitcode.com/G-YT/ANN/server/global"
)

// Topic 结构体
type Topic struct {
	global.GVA_MODEL
	Pid    *int   `json:"pid" form:"pid" gorm:"column:pid;comment:话题顶级ID;"`
	Name   string `json:"name" form:"name" gorm:"column:name;comment:话题名称;"`
	Status *bool  `json:"status" form:"status" gorm:"column:status;comment:是否开启;"`
	Number *int   `json:"number" form:"number" gorm:"column:number;comment:参与话题数;"`
	Sort   *int   `json:"sort" form:"sort" gorm:"column:sort;comment:序号;"`
}

// TableName Topic 表名
func (Topic) TableName() string {
	return "fd_topic"
}
